package com.yunchao.app.data.repository

import com.yunchao.app.domain.repository.NavHostRepository
import com.yunchao.library.lock.DeviceHelper

internal class NavHostRepositoryImpl(private val deviceHelper: DeviceHelper) : NavHostRepository {


    override suspend fun openDevice(): Result<Boolean> = runCatching {
        deviceHelper.openDevice()
    }

    override suspend fun closeDevice() {
        deviceHelper.closeDevice()
    }


}